﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestCompoundIntrestCalculator.aspx.cs" Inherits="CRMWeb.Pages.Test.TestCompoundIntrestCalculator" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
     <form id="form1" runat="server">
        <div>
            <asp:Label ID="Label1" runat="server" Text="No. of Days:" Width="150px"></asp:Label>

            <asp:TextBox ID="txtNumberofDays" runat="server" Width="150px">7</asp:TextBox>
            &nbsp;
            <br />
            <asp:Label ID="Label3" runat="server" Text="Principal:" Width="150px"></asp:Label>
            <asp:TextBox ID="txtPrincipal" runat="server" Width="150px">1600</asp:TextBox>
            <%--<asp:Label ID="Label7" runat="server" Text="Days" Width="150px"></asp:Label>--%>

            <br />
            <asp:Label ID="Label4" runat="server" Text="Loan Duration:" Width="150px"></asp:Label>

            <asp:TextBox ID="txtLoanDuration" runat="server" Width="150px">52</asp:TextBox>
            <asp:Label ID="Label7" runat="server" Text="Weeks" Width="150px"></asp:Label>
            <br />
            <asp:Label ID="Label6" runat="server" Text="Interest rate:" Width="150px"></asp:Label>

            <asp:TextBox ID="txtInterestRate" runat="server" Width="150px">48</asp:TextBox>

            <br />
            <asp:Label ID="Label8" runat="server" Text="First Repayment Date:" Width="150px"></asp:Label>
            <asp:TextBox ID="txtFirstRepaymentDate" runat="server" Width="150px">18/11/2013</asp:TextBox>
            <br />
            <asp:Label ID="Label2" runat="server" Text="Last Repayment Date:" Width="150px" ></asp:Label>

            <asp:TextBox ID="txtLastRepaymentDate" runat="server" Width="150px" >10/11/2014</asp:TextBox>

            <br />
            <asp:Label ID="Label9" runat="server" Text="No of Installments:" Width="150px" ></asp:Label>

            <asp:TextBox ID="txtNoofInstallments" runat="server" Width="150px" >52</asp:TextBox>
            <br />
            <asp:Label ID="Label5" runat="server" Text="Repayment:" Width="150px" ></asp:Label>

            <asp:TextBox ID="txtRepayment" runat="server" Width="150px" >39.59</asp:TextBox>
            <br />
            <asp:Label ID="Label11" runat="server" Text="Days in a year:" Width="150px" ></asp:Label>

            <asp:TextBox ID="txtDaysinayear" runat="server" Width="150px" >365</asp:TextBox>
            <br />
            <br />
            <asp:Label ID="Label10" runat="server" Text="Payment schedule(compound interest):" Width="250px"></asp:Label>
            <asp:Button ID="Button4" runat="server" Text="compound Interest (by Term)" OnClick="Button4_Click" Width="250px" />
            &nbsp;
            <asp:Button ID="Button3" runat="server" Text="compound Interest (by Repayment)" OnClick="Button3_Click" Width="250px" />
            <br />

        </div>
        <p>
            &nbsp;
        </p>

        <asp:GridView ID="dvSchedule" runat="server">
        </asp:GridView>

    </form>
</body>
</html>
